<template>
  <div class="box">

    <div class="config_header">
      <div class="select_div">
        <label><i>*</i>项目：</label>
        <my-select></my-select>
      </div>
      <div class="config_btn">
        <el-checkbox v-model="checked">显示已删除项目</el-checkbox>
      </div>
      <div class="config_btn">
        <el-button type="primary" size="mini">Search</el-button>
      </div>
    </div>


    <div class="config_table">
      <my-table></my-table>
    </div>
  </div>
</template>

<script>
import mySelect from "@/components/select"
import myTable from "@/components/table"
import api from '../api/api.js'

export default {
  data () {
    return {
      checked: true
    }
  },
  components:{
    mySelect,
    myTable
  },
  created() {
    api.Axios('/api/eleadDept/all', "").then(data => {
        console.log(data)
    })
  }
}
</script>

<style lang="scss" scoped>
.el-main{
  padding: 0;
}
.box{
  background-color: #fff;
  height: 100%;
  padding: 12px;
  .config_header{
    display: flex;
    border: 1px solid #d9d9d9;
    height: 82px;
    line-height: 82px;
    flex-wrap: wrap-reverse;
    .select_div{
      display: flex;
      flex-direction:row;
      padding-left: 20px;
      padding-right: 20px;
      float: left;
      font-size: 12px;
      width: 33.3%;
      label{
        width: 46px;
        i{
          color: red;
          padding-right: 3px;
        }
      }
  }
  .config_btn{
    float: left;
    padding-right: 10px;
  }
}
  .el-select{
    line-height: 40px;
  }
}
.el-checkbox__label{
  font-size: 12px;
}
</style>
